Protect __release_resource against resources without parents
authorPhil Elwell <phil@raspberrypi.org>
Fri, 13 Mar 2015 12:43:36 +0000 (12:43 +0000)
committerRaspbian kernel package updater <root@raspbian.org>
Thu, 9 Mar 2017 17:50:37 +0000 (17:50 +0000)
commitd3078bd3040aa01758d08993ddc73fc374c5a828
tree8783fde34d0ddc681001e5f0f568fd4152cc95a4
parent9444644b16f69fec912a534e5b2379609cc8d02a
Protect __release_resource against resources without parents

Without this patch, removing a device tree overlay can crash here.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
kernel/resource.c